<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>账目列表</title>
    <link rel="stylesheet" href="../../../layui/css/layui.css">
</head>
<body>
<table id="table" lay-filter="table"></table>
<script src="../../../layui/layui.js"></script>
<script>
    layui.use('table', function () {
        var table = layui.table;

        //第一个实例
        table.render({
            elem: '#table',
            height: 315,
            url: '../../../hwys/pageYhxx', //数据接口
            page: true,//开启分页
            cols: [[ //表头
                {field: 'id', title: 'ID', width: 100, sort: true, fixed: 'left'},
                {field: 'yhm', title: '用户名', width: 100},
                {field: 'xm', title: '姓名', width: 100, sort: true},
                {field: 'mm', title: '密码', width: 100},
                {field: 'djsj', title: '登记时间', width: 200},
                {field: 'bgbs', title: '变更标识', width: 200, sort: true}

            ]]
        });

    });
</script>
</body>
</html>